/**
 * 
 */
package net.teamix.Utils;

import java.io.File;

import org.springframework.beans.factory.FactoryBean;
import org.springframework.core.io.Resource;

/**
 * @author "Svetoslav Batchovski"
 * zum Resolv von dem Pfad bis zum webapp
 */
public class ResourceFileFactoryBean implements FactoryBean {

	

	Resource res;

	

	public ResourceFileFactoryBean(Resource res) {

		this.res = res;

	}



	public Object getObject() throws Exception {

		return res.getFile();

	}



	public Class getObjectType() {

		return File.class;

	}



	public boolean isSingleton() {

		return true;

	}

}